package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * ApiResponseGetGroupOfOrgDataItem
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiResponseGetGroupOfOrgDataItem   {
  @JsonProperty("tdId")
  private Integer tdId = null;

  @JsonProperty("tdName")
  private String tdName = null;

  @JsonProperty("orgId")
  private String orgId = null;

  @JsonProperty("totalOfPersons")
  private Integer totalOfPersons = null;

  public ApiResponseGetGroupOfOrgDataItem tdId(Integer tdId) {
    this.tdId = tdId;
    return this;
  }

  /**
   * 团队ID
   * @return tdId
  **/
  @ApiModelProperty(value = "团队ID")


  public Integer getTdId() {
    return tdId;
  }

  public void setTdId(Integer tdId) {
    this.tdId = tdId;
  }

  public ApiResponseGetGroupOfOrgDataItem tdName(String tdName) {
    this.tdName = tdName;
    return this;
  }

  /**
   * 团队名称
   * @return tdName
  **/
  @ApiModelProperty(value = "团队名称")


  public String getTdName() {
    return tdName;
  }

  public void setTdName(String tdName) {
    this.tdName = tdName;
  }

  public ApiResponseGetGroupOfOrgDataItem orgId(String orgId) {
    this.orgId = orgId;
    return this;
  }

  /**
   * 所属营业部编码
   * @return orgId
  **/
  @ApiModelProperty(value = "所属营业部编码")


  public String getOrgId() {
    return orgId;
  }

  public void setOrgId(String orgId) {
    this.orgId = orgId;
  }

  public ApiResponseGetGroupOfOrgDataItem totalOfPersons(Integer totalOfPersons) {
    this.totalOfPersons = totalOfPersons;
    return this;
  }

  /**
   * 团队人数
   * @return totalOfPersons
  **/
  @ApiModelProperty(value = "团队人数")


  public Integer getTotalOfPersons() {
    return totalOfPersons;
  }

  public void setTotalOfPersons(Integer totalOfPersons) {
    this.totalOfPersons = totalOfPersons;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiResponseGetGroupOfOrgDataItem apiResponseGetGroupOfOrgDataItem = (ApiResponseGetGroupOfOrgDataItem) o;
    return Objects.equals(this.tdId, apiResponseGetGroupOfOrgDataItem.tdId) &&
        Objects.equals(this.tdName, apiResponseGetGroupOfOrgDataItem.tdName) &&
        Objects.equals(this.orgId, apiResponseGetGroupOfOrgDataItem.orgId) &&
        Objects.equals(this.totalOfPersons, apiResponseGetGroupOfOrgDataItem.totalOfPersons);
  }

  @Override
  public int hashCode() {
    return Objects.hash(tdId, tdName, orgId, totalOfPersons);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiResponseGetGroupOfOrgDataItem {\n");
    
    sb.append("    tdId: ").append(toIndentedString(tdId)).append("\n");
    sb.append("    tdName: ").append(toIndentedString(tdName)).append("\n");
    sb.append("    orgId: ").append(toIndentedString(orgId)).append("\n");
    sb.append("    totalOfPersons: ").append(toIndentedString(totalOfPersons)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

